using Microsoft.AspNetCore.Components;
using System.Diagnostics.CodeAnalysis;
using WinformBlazor.Components;

namespace WinFormBlazorDesigner.Components
{
    public partial class PropertiesPanel
    {
        [Parameter, NotNull]
        public ControlInfo? ControlInfo { get; set; }

        [Inject]
        [NotNull]
        public DesignerJsInterop? JS { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [CascadingParameter]
        [NotNull]
        public Page? MainPage { get; set; }
        protected override void OnAfterRender(bool firstRender)
        {
            base.OnAfterRender(firstRender);
            switch (ControlInfo.Type)
            {
                case ContrloType.Form:
                    break;
                case ContrloType.Textbox:
                    break;
                case ContrloType.Button:
                    break;
                case ContrloType.Panel:
                    break;
                case ContrloType.Label:
                    break;
                case ContrloType.CheckBox:
                    break;
            }
        }
    }

}